﻿using System.ComponentModel.DataAnnotations;

namespace WS.EKA.Model
{
    [Table("V_ProductCategory")]
    public class ProductCatagory:BaseModel
    {
        public int ID { get; set; }
        [Required]
        [StringLength(50)]
        public string Name { get; set; }
        [StringLength(200)]
        public string Keywords { get; set; }
        [StringLength(150)]
        public string Description { get; set; }
        [Required]
        public int OrderID { get; set; }
        [Required]
        public int CategoryLevel { get; set; }
        [Required]
        public int FatherID { get; set; }
        [NotMapped]
        public bool IsLastLevel { get; set; }
    }
}
